<ion-view view-title="品牌申请" class="brandApply">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<button class="button button-clear saveText" on-tap="submit()">保存</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	
	<ion-content class="bg">
		<div class="list">
			<li class="item item-input">
				<div class="row">
					<div class="nameCol">
						申请品牌
					</div>
					<div class="col">
						<input type="text" placeholder="请输入品牌名称" ng-model="scope.name" />
					</div>
				</div>
			</li>
			
			<li class="item item-input mt10">
				<div class="row">
					<div class="nameCol">
						品牌描述
					</div>
					<div class="col">
						<textarea rows="5" placeholder="请输入品牌描述" ng-model="scope.explain"></textarea>
					</div>
				</div>
			</li>
			
			<li class="item mt10">
				<div class="row">
					<div class="nameCol">
						品类
					</div>
					<div class="col catTip" on-tap="showSelectCat()">
						请添加<img class="jt" src="{{isShowSelectCat?'./img/guilin/common/icon_up@2x.png':'./img/guilin/common/icon_down@2x.png'}}" />
					</div>
				</div>
			</li>
			<div ng-if="isShowSelectCat">
				<li class="item">
					<div class="row">
						<div class="nameCol">
							&nbsp;
						</div>
						<div class=" item-input item-select catTip" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
							</div>
					</div>
				</li>
				<!--按钮-->
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class="col">
							<span class="btn blue" on-tap="add_type()">确定</span>
							<span class="btn grab right-zhang" on-tap="showSelectCat()">取消</span>
						</div>
					</div>
				</li>
			</div>
			
			<li class="item selected" ng-repeat="cat in cats"><!--显示。保存过的品牌，品类只能增加，不能删除的 -->
				{{cat}}<img class="delIcon" src="./img/guilin/common/icon_delete_g@2x.png" ng-if="!scope.id||$index>=scope.goods_cat.length" on-tap="delete_type($index)"/>
			</li>
			
			<li class="item imgItem mt10">
				<div class="row">
					<div class="nameCol">
						LOGO
					</div>
					<div class="col item-image">
						<img src="./img/guilin/other/brandApply_icon.png" on-tap="addStoreImg('logo')" ng-if="!logo.image"/>
						<img src="{{logo.image}}" on-tap="openFileActSheet('logo')" ng-if="logo.image"/>
					</div>
				</div>
			</li>
			
			<li class="item imgItem mt10">
				<div class="row">
					<div class="nameCol">
						资质图片
					</div>
					<div class="col item-image">
						<img src="./img/guilin/other/brandApply_icon.png" on-tap="addStoreImg('aptitude')" ng-if="!aptitude.image"/>
						<img src="{{aptitude.image}}" on-tap="openFileActSheet('aptitude')" ng-if="aptitude.image"/>
					</div>
				</div>
			</li>
			
		</div>
	</ion-content>
</ion-view>